<template>
  <j-modal :title="title" :width="width" :visible="visible" switchFullscreen cancelText="关闭" @cancel="handleCancel">
    <template slot="footer">
      <a-button key="submit" type="default" @click="handleCancel"> 关闭 </a-button>
    </template>
    <a-table :scroll="{ y: 600 }" :columns="columns" :data-source="dataList" bordered :pagination="false">
    </a-table>
  </j-modal>
</template>

<script>
import { httpAction } from '@/api/manage'
import pick from 'lodash.pick'
import { validateDuplicateValue } from '@/utils/util'
import JSearchSelectTag from '@/components/dict/JSearchSelectTag'
export default {
  name: 'CrmWmsInventoryModal',
  components: {
    JSearchSelectTag,
  },
  data() {
    return {
      title: '操作记录',
      width: 1000,
      visible: false,
      name: '',
      columns: [
        {
          title: '#',
          dataIndex: '',
          key: 'rowIndex',
          width: 100,
          align: 'center',
          customRender: function (t, r, index) {
            return parseInt(index) + 1
          },
        },
        {
          title: '操作人',
          dataIndex: 'createUserId_dictText',
          align: 'center',
        },

        {
          title: '操作内容',
          dataIndex: 'content',
          align: 'center',
        },
        {
          title: '操作时间',
          dataIndex: 'createTime',
          align: 'center',
        },
      ],
      dataList: [],
      url: {},
    }
  },
  created() {},
  methods: {
    show(data) {
      this.visible = true
      this.dataList = data
    },
    close() {
      this.$emit('close')
      this.visible = false
    },
    handleCancel() {
      this.close()
    },
  },
}
</script>
